<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.crowdgeeks.twitterclient.TwitterStatus" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="Bean's Twitter client, an OAuth enabled Twitter client.">
        <meta name="keywords" content="twitter, client, oauth">
        <title>Bean's Twitter Client</title>
    </head>
    <body>
        <h3>Bean's Twitter Client</h3>
<%
List<TwitterStatus>list = (List)request.getAttribute("twitterStatusList");
if(list !=null && list.size() > 0) {
%>
<table>
<%   for (int i = 0; i < list.size(); i++) {
       TwitterStatus ts = list.get(i);
 %>
  <tr style="font-size:80%;">
    <td><b><%= ts.getCreatedUser() %></b></td>
    <td><%= ts.getMessage() %></td>
  </tr>
<%
     }
 %>
</table>
<%
}
%>
        <%--
        <c:if test="${twitterStatusList}">
            <table>
            <c:forEach items="${twitterStatusList}" var="list">
                <tr style="font-size:80%;">
                    <td><b>${list.createdUser}</b></td>
                    <td>${list.message}</td>
                </tr>
            </c:forEach>
            </table>
        </c:if>
        --%>
    </body>
</html>